package nm.aleksey.client.widgets;

import nm.aleksey.shared.AuthorProxy;

import com.google.gwt.core.client.GWT;
import com.google.gwt.editor.client.Editor;
import com.google.gwt.editor.ui.client.ValueBoxEditorDecorator;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class AuthorEditor extends Composite implements Editor<AuthorProxy> {

  interface AuthorEditorUiBinder extends UiBinder<Widget, AuthorEditor> {
  }

  @UiField
  ValueBoxEditorDecorator<String> name;
  @UiField
  ValueBoxEditorDecorator<String> email;
  @UiField
  ValueBoxEditorDecorator<String> address;
  private static AuthorEditorUiBinder uiBinder = GWT
      .create(AuthorEditorUiBinder.class);

  public AuthorEditor() {
    initWidget(uiBinder.createAndBindUi(this));
  }

}
